package com.jack.xiaoer.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jack.xiaoer.entity.Category;

import java.util.List;
import java.util.Optional;

/**
 * Created by Jackaroo Zhang on 2018/12/10.
 */
public interface CategoryService {

    Category createCategory(Optional<Category> category);

    IPage<Category> listTopCategory(Integer pageNum, Integer pageSize);

}
